package com.ruoyi.supermarket.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存对象 tb_stock
 * 
 * @author ruoyi
 * @date 2024-05-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Stock
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long stockId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 货位id */
    @Excel(name = "货位id")
    private Long whId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockNum;

    /** 库存总金额 */
    @Excel(name = "库存总金额")
    private BigDecimal stockPrice;

    /** 赠品数量 */
    @Excel(name = "赠品数量")
    private Long stockZpNum;

    private BigDecimal cjPrice;

    //批次
    private String batch;
    //---------------------------------追加属性
    private Long supplyId;
    private String whName;
    private String supplyName;
    private String categoryName;
    private String unit;
    private Date manufactureDate;
    private Date expirationDate;
    private String productCode;
    private String productName;
    private String productBrand;
    private String countryOfOrigin;
    private BigDecimal xsPrice;
    private String  status;

    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setWhId(Long whId) 
    {
        this.whId = whId;
    }

    public Long getWhId() 
    {
        return whId;
    }
    public void setStockNum(Long stockNum) 
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum() 
    {
        return stockNum;
    }
    public void setStockPrice(BigDecimal stockPrice) 
    {
        this.stockPrice = stockPrice;
    }

    public BigDecimal getStockPrice() 
    {
        return stockPrice;
    }
    public void setStockZpNum(Long stockZpNum) 
    {
        this.stockZpNum = stockZpNum;
    }

    public Long getStockZpNum() 
    {
        return stockZpNum;
    }
}
